package jmu.edu.yjc.domain.entity.neo4j.RelationEntity;

import io.swagger.annotations.ApiModel;
import jmu.edu.yjc.domain.entity.neo4j.NodeEntity.Acompany;
import jmu.edu.yjc.domain.entity.neo4j.NodeEntity.Disease;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.neo4j.core.schema.*;

@Data
@RelationshipProperties
@Builder
@ApiModel("并发症")
@AllArgsConstructor
@NoArgsConstructor
public class ComplicationWith {
    @Id
    @GeneratedValue
    private Long id;
    @Property("name")
    private String name;
    @TargetNode
    private Acompany acompany;
}
